Unit E5: Differential
Equations单元 E5:微分方程
A differential equation is an equation whose unknown is a function and which involves that function together with one or more of its derivatives. E5 covers the AHL-only toolkit for first-order DEs: set up a DE from a context, verify a candidate solution, separate variables, solve a homogeneous equation with the substitution $y = vx$, multiply by an integrating factor, march numerically with Euler's method, read a slope field, and model the standard applications (growth, decay, Newton's law of cooling).微分方程是以函数为未知量、并把该函数与其若干阶导数联系起来的方程。E5 涵盖 AHL 专属的一阶微分方程工具集:由情境建立微分方程、验证候选解、分离变量、用换元 $y = vx$ 解齐次方程、乘以积分因子、用欧拉法数值推进、读懂斜率场,以及标准建模应用(增长、衰减、牛顿冷却律)。
This unit is HL only; SL students can skip it. Differential equations (AHL 5.18) are additional higher level content in IB Mathematics: Analysis and Approaches, so they are not part of the SL course. Switch the course button at the top of the page to HL to read the full unit.
本单元仅限 HL;SL 学生可以跳过。微分方程(differential equations,AHL 5.18)属于 IB 数学:分析与方法的高级附加内容(additional higher level),不在 SL 课程中。如需阅读完整单元,请把页面顶部的课程按钮切换到 HL。
What is a Differential Equation何谓微分方程 HL AHL 5.18
- State the order of a differential equation and identify a first-order DE.
- Distinguish the general solution (one arbitrary constant) from a particular solution fixed by an initial condition.
- Verify that a given function satisfies a DE by substituting it into both sides.
- Write down a DE from a verbal statement about a rate of change, with an initial condition and consistent units.
- Deduce the value of the arbitrary constant from an initial condition.
- 写出(
state)微分方程的阶数,并识别一阶微分方程。 - 区分通解(
general solution,含一个任意常数)与由初始条件(initial condition)确定的特解(particular solution)。 - 把给定函数代入方程两边,验证(
verify)它满足微分方程。 - 由关于变化率的文字叙述写出微分方程,附上初始条件,并保持单位一致。
- 由初始条件推断(
deduce)任意常数的值。
- A differential equation (DE) is an equation involving an unknown function $y(x)$ together with one or more of its derivatives.
- The order of a DE is the order of the highest derivative that appears. First-order means only $\tfrac{dy}{dx}$ shows up.
- To solve a DE is to find an explicit formula $y = $ (expression in $x$), or an implicit relation $F(x, y) = 0$, that satisfies the equation.
- The general solution contains one arbitrary constant (for a first-order DE). A particular solution is the general solution with that constant fixed by an initial condition, such as $y(0) = 1$.
- To verify a candidate $y(x)$, substitute it into both sides of the DE and check that the two sides agree as functions of $x$.
- 微分方程(DE)是把未知函数 $y(x)$ 与其若干阶导数联系起来的方程。
- 阶数是方程中所出现的最高阶导数的阶数。一阶表示只出现 $\tfrac{dy}{dx}$。
- 解微分方程即求得显式 $y = $($x$ 的表达式)或隐式关系 $F(x, y) = 0$ 满足该方程。
- 通解含一个任意常数(一阶 DE)。特解是用初始条件(如 $y(0) = 1$)把通解中常数确定后的解。
- 验证候选解 $y(x)$:代入方程两边,检查作为 $x$ 的函数是否相等。
Worked Example E5.1: verify a solutionE5.1 例题:验证解
Verify that $y = e^{x}$ is a solution of the differential equation $\tfrac{dy}{dx} = y$.验证 $y = e^{x}$ 是微分方程 $\tfrac{dy}{dx} = y$ 的解。
Differentiate the candidate. $\tfrac{dy}{dx} = \tfrac{d}{dx}(e^{x}) = e^{x}$.
对候选解求导。$\tfrac{dy}{dx} = \tfrac{d}{dx}(e^{x}) = e^{x}$。
Compare with the right-hand side. The DE says $\tfrac{dy}{dx} = y$. Substituting the candidate, $y = e^{x}$, so the right-hand side is $e^{x}$.
与右边比较。方程为 $\tfrac{dy}{dx} = y$。把候选解 $y = e^{x}$ 代入,右边为 $e^{x}$。
Conclusion. Left-hand side $e^{x}$ equals right-hand side $e^{x}$ for every $x$. Therefore $y = e^{x}$ satisfies the DE.
结论。左右两边对所有 $x$ 均为 $e^{x}$。故 $y = e^{x}$ 满足该方程。
Remark. $y = e^{x}$ is one particular solution. The general solution is $y = A e^{x}$ for any constant $A$, because differentiating $A e^{x}$ still gives $A e^{x}$. An initial condition such as $y(0) = 1$ would fix $A = 1$ and recover the candidate above.
注记。$y = e^{x}$ 只是一个特解。通解为 $y = A e^{x}$($A$ 为任意常数),因为 $A e^{x}$ 的导数仍为 $A e^{x}$。初始条件 $y(0) = 1$ 可确定 $A = 1$,恰好得到上述候选解。
Going deeper: why first-order DEs need exactly one constant深入:一阶 DE 为何只含一个常数
Integrating a first-order DE involves exactly one antiderivative step, and every antiderivative carries an additive constant of integration. Higher-order DEs require more antiderivative steps and pick up more constants: a second-order DE has a general solution with two arbitrary constants, and so on. In E5 we work with first-order equations only, so one initial condition is always enough to pin down a unique particular solution.
解一阶微分方程恰好做一次反求导(积分),每次反求导都带出一个积分常数。更高阶 DE 需要更多次反求导,从而引入更多任意常数:二阶 DE 的通解含两个任意常数,依此类推。E5 只处理一阶方程,所以一个初始条件总足以唯一确定特解。
Worked Example E5.1b: verify a solution AND its initial conditionE5.1b 例题:同时验证解与初始条件
Verify that $y = 3e^{2x} - 1$ is the particular solution of $\tfrac{dy}{dx} = 2y + 2$ satisfying $y(0) = 2$.验证 $y = 3e^{2x} - 1$ 是 $\tfrac{dy}{dx} = 2y + 2$ 满足 $y(0) = 2$ 的特解。
Differentiate the candidate. $\tfrac{dy}{dx} = 3 \cdot 2 e^{2x} = 6e^{2x}$.
对候选解求导。$\tfrac{dy}{dx} = 3 \cdot 2 e^{2x} = 6e^{2x}$。
Substitute into the right-hand side. $2y + 2 = 2(3e^{2x} - 1) + 2 = 6e^{2x} - 2 + 2 = 6e^{2x}$.
代入右边。$2y + 2 = 2(3e^{2x} - 1) + 2 = 6e^{2x} - 2 + 2 = 6e^{2x}$。
The DE is satisfied: both sides equal $6e^{2x}$ for every $x$. But this only confirms $y = 3e^{2x} - 1$ is a solution, not necessarily the one matching $y(0) = 2$.
方程成立:两边对所有 $x$ 都等于 $6e^{2x}$。但这只说明 $y = 3e^{2x} - 1$ 是某个解,还未确认它就是满足 $y(0) = 2$ 的那一个。
Check the initial condition separately. $y(0) = 3e^{0} - 1 = 3 - 1 = 2$. ✓
单独检验初始条件。$y(0) = 3e^{0} - 1 = 3 - 1 = 2$。 ✓
Conclusion. Both checks must pass independently: verifying the DE alone does not confirm the constant is correct, and verifying $y(0)=2$ alone does not confirm the function actually solves the DE.
结论。两项检验缺一不可:仅验证方程本身并不能确认常数选对了;仅验证 $y(0)=2$ 也不能确认该函数确实满足方程。
Setting up a differential equation from a context由情境建立微分方程
Many questions describe a rate in words and leave the equation to you. Translate phrase by phrase. "The rate of change of $Q$" is $\tfrac{dQ}{dt}$. "Is proportional to $X$" means $= kX$ for a constant $k$. "Decreases" or "is lost" means the rate is negative, so write $-kX$ with $k > 0$ rather than leaving the sign inside $k$. A starting value ("initially", "at $t = 0$") becomes the initial condition. Finally check units: both sides must carry the same unit, such as kg per minute.
很多题目用文字描述变化率,方程要你自己写。逐句翻译。"$Q$ 的变化率"即 $\tfrac{dQ}{dt}$。"与 $X$ 成正比"(is proportional to)表示 $= kX$,$k$ 为常数。"减少"或"流失"表示变化率为负,所以写成 $-kX$ 并注明 $k > 0$,不要把符号藏在 $k$ 里。起始值("最初"、"$t = 0$ 时")就是初始条件。最后检查单位:两边单位必须相同,例如千克每分钟。
Common misconception. "Proportional to $X$" is not "equal to $X$": without the constant $k$ the model has no free parameter to fit to data, and a later part that asks you to find $k$ cannot be answered.
常见误解。"与 $X$ 成正比"不等于"等于 $X$":没有常数 $k$,模型就没有可用数据拟合的参数,后面要求求 $k$ 的小问也就无从下手。
Worked Example E5.1c: set up a DE from a mixing contextE5.1c 例题:由混合问题建立微分方程
A tank holds $100$ litres of brine containing $5$ kg of dissolved salt. Pure water flows in at $2$ litres per minute and the well-mixed solution flows out at $2$ litres per minute. Let $S$ kg be the mass of salt in the tank after $t$ minutes. (a) Write down a differential equation and an initial condition for $S$. (b) Verify that $S = 5e^{-t/50}$ satisfies both. (c) Find the mass of salt after $10$ minutes.一个水箱装有 $100$ 升盐水,其中溶有 $5$ 千克盐。纯水以每分钟 $2$ 升流入,充分混合后的溶液以每分钟 $2$ 升流出。设 $t$ 分钟后箱中盐的质量为 $S$ 千克。(a) 写出 $S$ 满足的微分方程与初始条件。(b) 验证 $S = 5e^{-t/50}$ 同时满足二者。(c) 求 $10$ 分钟后箱中盐的质量。
(a) Rate in minus rate out. The inflow is pure water, so salt enters at $0$ kg per minute. In and out flows are equal, so the volume stays $100$ litres and the concentration is $\tfrac{S}{100}$ kg per litre. Salt leaves at $2 \times \tfrac{S}{100} = \tfrac{S}{50}$ kg per minute. Hence
(a) 流入速率减流出速率。流入的是纯水,所以盐以每分钟 $0$ 千克进入。流入与流出相等,所以体积保持 $100$ 升,浓度为每升 $\tfrac{S}{100}$ 千克。盐以每分钟 $2 \times \tfrac{S}{100} = \tfrac{S}{50}$ 千克流出。于是
$$ \frac{dS}{dt} \;=\; -\frac{S}{50}, \qquad S(0) \;=\; 5. $$Units: the left side is kg per minute; on the right, $\tfrac{S}{50}$ is kg times (litres per minute divided by litres), also kg per minute.
单位:左边为千克每分钟;右边 $\tfrac{S}{50}$ 为千克乘以(升每分钟除以升),同样是千克每分钟。
(b) Verify. $\tfrac{dS}{dt} = 5 \cdot \left(-\tfrac{1}{50}\right) e^{-t/50} = -\tfrac{1}{10} e^{-t/50}$, and $-\tfrac{S}{50} = -\tfrac{5e^{-t/50}}{50} = -\tfrac{1}{10} e^{-t/50}$. The two sides agree for every $t$. Also $S(0) = 5e^{0} = 5$.
(b) 验证。$\tfrac{dS}{dt} = 5 \cdot \left(-\tfrac{1}{50}\right) e^{-t/50} = -\tfrac{1}{10} e^{-t/50}$,而 $-\tfrac{S}{50} = -\tfrac{5e^{-t/50}}{50} = -\tfrac{1}{10} e^{-t/50}$。两边对所有 $t$ 相等。且 $S(0) = 5e^{0} = 5$。
(c) $S(10) = 5e^{-10/50} = 5e^{-0.2} \approx 4.09$ kg.
(c) $S(10) = 5e^{-10/50} = 5e^{-0.2} \approx 4.09$ 千克。
Why this works. A conservation statement (rate in minus rate out) is already a differential equation; the only modelling step is expressing each rate in terms of $S$.
为什么可行。守恒关系(流入速率减流出速率)本身就是一个微分方程;唯一的建模步骤是把每个速率用 $S$ 表示出来。
When asked to "verify" or "show that" a function solves a DE, work on each side separately until both reach the same expression, then state that they are equal; do not start by assuming the equation holds. Check the initial condition as a separate line. When you set up a model, define every variable with its unit, introduce the constant of proportionality explicitly, and state its sign ($k > 0$).
题目要求"验证"(verify)或"证明"(show that)某函数是微分方程的解时,要分别化简两边直到得到同一表达式,再说明二者相等;不要一开始就假设等式成立。初始条件单独写一行检验。建立模型时,定义每个变量及其单位,明确引入比例常数,并说明其符号($k > 0$)。
State the order of $\left(\tfrac{dy}{dx}\right)^{3} + y = x$.写出 $\left(\tfrac{dy}{dx}\right)^{3} + y = x$ 的阶数。
First order. The highest derivative present is $\tfrac{dy}{dx}$; the cube is a power of that derivative, not a higher derivative.
一阶。所出现的最高阶导数是 $\tfrac{dy}{dx}$;立方只是该导数的幂,并不是更高阶的导数。
Show that $y = Ax^{2}$ satisfies $x \tfrac{dy}{dx} = 2y$ for every constant $A$, and find the particular solution with $y(2) = 12$.证明对任意常数 $A$,$y = Ax^{2}$ 满足 $x \tfrac{dy}{dx} = 2y$,并求满足 $y(2) = 12$ 的特解。
$\tfrac{dy}{dx} = 2Ax$, so the left side is $x \cdot 2Ax = 2Ax^{2}$, and the right side is $2y = 2Ax^{2}$. They agree. Then $y(2) = 4A = 12$ gives $A = 3$, so $y = 3x^{2}$.
$\tfrac{dy}{dx} = 2Ax$,所以左边为 $x \cdot 2Ax = 2Ax^{2}$,右边为 $2y = 2Ax^{2}$,两边相等。再由 $y(2) = 4A = 12$ 得 $A = 3$,所以 $y = 3x^{2}$。
In a school of $800$ students, $N$ students have heard a rumour after $t$ days. The rate at which $N$ increases is proportional to the product of the number who have heard it and the number who have not. Initially $10$ students have heard it. Write down the DE and initial condition, and find the initial rate if the constant of proportionality is $0.001$.某校有 $800$ 名学生,$t$ 天后有 $N$ 人听到一则传言。$N$ 的增长速率与"已听到的人数"和"未听到的人数"之积成正比。最初有 $10$ 人听到。写出微分方程与初始条件;若比例常数为 $0.001$,求初始增长速率。
$\tfrac{dN}{dt} = kN(800 - N)$ with $k > 0$, and $N(0) = 10$. With $k = 0.001$: $\tfrac{dN}{dt} = 0.001 \times 10 \times 790 = 7.9$ students per day at $t = 0$.
$\tfrac{dN}{dt} = kN(800 - N)$,$k > 0$,且 $N(0) = 10$。取 $k = 0.001$:$t = 0$ 时 $\tfrac{dN}{dt} = 0.001 \times 10 \times 790 = 7.9$ 人每天。
Separable Variables分离变量法 HL AHL 5.18
- Identify a separable DE $\tfrac{dy}{dx} = f(x)\,g(y)$, including ones that need factorising first, such as $e^{x - y} = e^{x} e^{-y}$.
- Solve a separable DE by separating, integrating both sides with one constant, and applying an initial condition.
- Explain why $\int \tfrac{dy}{y} = \ln|y| + C$ leads to $y = Ae^{(\dots)}$, and identify constant solutions lost by dividing.
- Recognise a homogeneous DE $\tfrac{dy}{dx} = F\!\left(\tfrac{y}{x}\right)$ and reduce it to a separable DE with the substitution $y = vx$.
- Verify a solution, explicit or implicit, by substituting back into the DE.
- 识别可分离(
separable)方程 $\tfrac{dy}{dx} = f(x)\,g(y)$,包括需要先因式分解的情形,例如 $e^{x - y} = e^{x} e^{-y}$。 - 分离变量、两边积分(只加一个常数)并代入初始条件,求解(
solve)可分离方程。 - 解释(
explain)为何由 $\int \tfrac{dy}{y} = \ln|y| + C$ 得到 $y = Ae^{(\dots)}$,并找出因除法而丢失的常值解。 - 识别齐次方程(
homogeneous DE)$\tfrac{dy}{dx} = F\!\left(\tfrac{y}{x}\right)$,并用换元 $y = vx$ 化为可分离方程。 - 把显式解或隐式解代回方程进行验证(
verify)。
Three traps.
- If $g(y) = 0$ at some value of $y$, that constant function is also a solution. Check whether dividing by $g(y)$ lost a solution.
- $\int \tfrac{dy}{y} = \ln |y| + C$, not $\ln y + C$. The absolute value disappears only after exponentiating into $y = A e^{(\dots)}$ with $A$ a real constant that may be positive or negative.
- Constants combine: $\ln |y| = h(x) + C$ becomes $|y| = e^{C} e^{h(x)}$, then $y = A e^{h(x)}$ with $A = \pm e^{C} \neq 0$ (the case $A = 0$ comes from the lost constant solution $y = 0$).
三个陷阱。
- 若 $g(y) = 0$ 在某 $y$ 值成立,则该常值函数也是解。检查"除以 $g(y)$"是否丢解。
- $\int \tfrac{dy}{y} = \ln |y| + C$,不是 $\ln y + C$。绝对值在指数化为 $y = A e^{(\dots)}$($A$ 可正可负)后才消失。
- 常数合并:$\ln |y| = h(x) + C$ 变为 $|y| = e^{C} e^{h(x)}$,再写作 $y = A e^{h(x)}$,其中 $A = \pm e^{C} \ne 0$($A = 0$ 对应被丢掉的常值解 $y = 0$)。
Worked Example E5.2: separable with initial conditionE5.2 例题:含初始条件
Solve $\dfrac{dy}{dx} = x y$ subject to $y(0) = 1$.求解 $\dfrac{dy}{dx} = x y$,初始条件 $y(0) = 1$。
Identify the form. Here $f(x) = x$ and $g(y) = y$, so the equation is separable.
识别形式。$f(x) = x$,$g(y) = y$,方程可分离。
Separate.
分离变量。
$$ \frac{dy}{y} \;=\; x \, dx. $$Integrate both sides.
两边积分。
$$ \int \frac{dy}{y} \;=\; \int x \, dx \quad \Longrightarrow \quad \ln |y| \;=\; \frac{x^{2}}{2} + C. $$Solve for $y$. Exponentiate both sides:
解出 $y$。两边取指数:
$$ |y| \;=\; e^{C} e^{x^{2}/2} \quad \Longrightarrow \quad y \;=\; A \, e^{x^{2}/2}, \qquad A = \pm e^{C}. $$Apply the initial condition. $y(0) = 1$ gives $1 = A \cdot e^{0} = A$, so $A = 1$.
代入初始条件。$y(0) = 1$ 得 $1 = A \cdot e^{0} = A$,故 $A = 1$。
Particular solution.
特解。
$$ y \;=\; e^{x^{2}/2}. $$Check. $\tfrac{dy}{dx} = e^{x^{2}/2} \cdot x = x y$, and $y(0) = e^{0} = 1$. Both sides match the original DE.
检验。$\tfrac{dy}{dx} = e^{x^{2}/2} \cdot x = x y$,且 $y(0) = e^{0} = 1$。与原方程一致。
Worked Example E5.2b: factorise first, then separateE5.2b 例题:先因式分解,再分离变量
Solve $\dfrac{dy}{dx} = e^{x - y}$ given that $y(0) = \ln 2$. Give $y$ explicitly in terms of $x$.已知 $y(0) = \ln 2$,求解 $\dfrac{dy}{dx} = e^{x - y}$,把 $y$ 显式表示为 $x$ 的函数。
Factorise the right-hand side. $e^{x - y} = e^{x} \cdot e^{-y}$, so $f(x) = e^{x}$ and $g(y) = e^{-y}$, which is never zero (no constant solutions are lost).
右边因式分解。$e^{x - y} = e^{x} \cdot e^{-y}$,所以 $f(x) = e^{x}$,$g(y) = e^{-y}$,且它恒不为零(不会丢失常值解)。
Separate and integrate. Multiply both sides by $e^{y}$:
分离并积分。两边乘以 $e^{y}$:
$$ \int e^{y} \, dy \;=\; \int e^{x} \, dx \quad \Longrightarrow \quad e^{y} \;=\; e^{x} + C. $$Apply the initial condition. At $x = 0$, $y = \ln 2$: $e^{\ln 2} = 2 = e^{0} + C = 1 + C$, so $C = 1$.
代入初始条件。$x = 0$ 时 $y = \ln 2$:$e^{\ln 2} = 2 = e^{0} + C = 1 + C$,所以 $C = 1$。
Solve for $y$. $e^{y} = e^{x} + 1$, and $e^{x} + 1 > 0$ for every $x$, so
解出 $y$。$e^{y} = e^{x} + 1$,且对所有 $x$ 都有 $e^{x} + 1 > 0$,所以
$$ y \;=\; \ln\bigl(e^{x} + 1\bigr). $$Check by substituting back. $\tfrac{dy}{dx} = \tfrac{e^{x}}{e^{x} + 1}$, and $e^{x - y} = \tfrac{e^{x}}{e^{y}} = \tfrac{e^{x}}{e^{x} + 1}$. The sides agree, and $y(0) = \ln 2$.
代回检验。$\tfrac{dy}{dx} = \tfrac{e^{x}}{e^{x} + 1}$,而 $e^{x - y} = \tfrac{e^{x}}{e^{y}} = \tfrac{e^{x}}{e^{x} + 1}$。两边相等,且 $y(0) = \ln 2$。
Why this works. An exponent that is a difference splits into a product, and a product of an $x$-part and a $y$-part is exactly the separable form.
为什么可行。指数为差时可拆成乘积,而"$x$ 部分乘 $y$ 部分"正是可分离形式。
Homogeneous equations: the substitution y = vx齐次方程:换元 y = vx
Definition. A first-order DE is homogeneous if the right-hand side can be written as a function of the ratio $\tfrac{y}{x}$ alone: $\tfrac{dy}{dx} = F\!\left(\tfrac{y}{x}\right)$. A quick test: replace $x$ by $\lambda x$ and $y$ by $\lambda y$; if the $\lambda$ cancels completely, the equation is homogeneous. For example $\tfrac{x^{2} + y^{2}}{xy}$ is homogeneous, but $x + y$ is not.
定义。若一阶方程的右边可以只写成比值 $\tfrac{y}{x}$ 的函数,即 $\tfrac{dy}{dx} = F\!\left(\tfrac{y}{x}\right)$,则称其为齐次方程(homogeneous)。快速检验:把 $x$ 换成 $\lambda x$、$y$ 换成 $\lambda y$,若 $\lambda$ 完全消去,方程就是齐次的。例如 $\tfrac{x^{2} + y^{2}}{xy}$ 是齐次的,而 $x + y$ 不是。
Mechanism. Put $y = vx$, where $v$ is a new function of $x$. By the product rule $\tfrac{dy}{dx} = v + x\tfrac{dv}{dx}$, so the DE becomes $v + x\tfrac{dv}{dx} = F(v)$, that is $x\tfrac{dv}{dx} = F(v) - v$. This is separable in $v$ and $x$: $\int \tfrac{dv}{F(v) - v} = \int \tfrac{dx}{x}$. Solve for $v$, then replace $v$ by $\tfrac{y}{x}$.
原理。令 $y = vx$,其中 $v$ 是 $x$ 的新函数。由乘积法则 $\tfrac{dy}{dx} = v + x\tfrac{dv}{dx}$,方程化为 $v + x\tfrac{dv}{dx} = F(v)$,即 $x\tfrac{dv}{dx} = F(v) - v$。这是关于 $v$ 与 $x$ 的可分离方程:$\int \tfrac{dv}{F(v) - v} = \int \tfrac{dx}{x}$。解出 $v$ 后再把 $v$ 换回 $\tfrac{y}{x}$。
Common misconception. Writing $\tfrac{dy}{dx} = \tfrac{dv}{dx}$ or $\tfrac{dy}{dx} = v$ after substituting. Because $v$ depends on $x$, the product rule term $x\tfrac{dv}{dx}$ is essential; dropping it destroys the method.
常见误解。换元后写成 $\tfrac{dy}{dx} = \tfrac{dv}{dx}$ 或 $\tfrac{dy}{dx} = v$。由于 $v$ 依赖于 $x$,乘积法则给出的 $x\tfrac{dv}{dx}$ 项必不可少;漏掉它整个方法就失效了。
Worked Example E5.2c: homogeneous DE with y = vxE5.2c 例题:用 y = vx 解齐次方程
Solve $\dfrac{dy}{dx} = \dfrac{x^{2} + y^{2}}{xy}$ for $x > 0$, given that $y(1) = 2$.对 $x > 0$,已知 $y(1) = 2$,求解 $\dfrac{dy}{dx} = \dfrac{x^{2} + y^{2}}{xy}$。
Write the right-hand side in terms of $\tfrac{y}{x}$. Divide numerator and denominator by $x^{2}$: $\tfrac{x^{2} + y^{2}}{xy} = \tfrac{1 + (y/x)^{2}}{y/x}$, so the DE is homogeneous with $F(v) = \tfrac{1 + v^{2}}{v} = \tfrac{1}{v} + v$.
把右边写成 $\tfrac{y}{x}$ 的函数。分子分母同除以 $x^{2}$:$\tfrac{x^{2} + y^{2}}{xy} = \tfrac{1 + (y/x)^{2}}{y/x}$,所以方程是齐次的,$F(v) = \tfrac{1 + v^{2}}{v} = \tfrac{1}{v} + v$。
Substitute $y = vx$, $\tfrac{dy}{dx} = v + x\tfrac{dv}{dx}$.
代入 $y = vx$,$\tfrac{dy}{dx} = v + x\tfrac{dv}{dx}$。
$$ v + x\frac{dv}{dx} \;=\; \frac{1}{v} + v \quad \Longrightarrow \quad x\frac{dv}{dx} \;=\; \frac{1}{v}. $$Separate and integrate.
分离并积分。
$$ \int v \, dv \;=\; \int \frac{dx}{x} \quad \Longrightarrow \quad \frac{v^{2}}{2} \;=\; \ln x + C \qquad (x > 0). $$Apply the initial condition. At $x = 1$, $v = \tfrac{y}{x} = 2$: $\tfrac{4}{2} = \ln 1 + C$, so $C = 2$. Hence $v^{2} = 2\ln x + 4$.
代入初始条件。$x = 1$ 时 $v = \tfrac{y}{x} = 2$:$\tfrac{4}{2} = \ln 1 + C$,所以 $C = 2$。于是 $v^{2} = 2\ln x + 4$。
Return to $y$. $\tfrac{y^{2}}{x^{2}} = 2\ln x + 4$. Since $y(1) = 2 > 0$, take the positive root:
换回 $y$。$\tfrac{y^{2}}{x^{2}} = 2\ln x + 4$。由于 $y(1) = 2 > 0$,取正根:
$$ y \;=\; x\sqrt{2\ln x + 4}. $$The square root needs $2\ln x + 4 > 0$, so the solution is valid for $x > e^{-2}$.
根号要求 $2\ln x + 4 > 0$,所以该解在 $x > e^{-2}$ 上成立。
Check by substituting back. Let $S = 2\ln x + 4$. Then $\tfrac{dy}{dx} = \sqrt{S} + x \cdot \tfrac{1}{2\sqrt{S}} \cdot \tfrac{2}{x} = \sqrt{S} + \tfrac{1}{\sqrt{S}}$. The right-hand side is $\tfrac{x^{2} + x^{2}S}{x \cdot x\sqrt{S}} = \tfrac{1 + S}{\sqrt{S}} = \tfrac{1}{\sqrt{S}} + \sqrt{S}$. They agree, and $y(1) = 1 \cdot \sqrt{4} = 2$.
代回检验。令 $S = 2\ln x + 4$。则 $\tfrac{dy}{dx} = \sqrt{S} + x \cdot \tfrac{1}{2\sqrt{S}} \cdot \tfrac{2}{x} = \sqrt{S} + \tfrac{1}{\sqrt{S}}$。右边为 $\tfrac{x^{2} + x^{2}S}{x \cdot x\sqrt{S}} = \tfrac{1 + S}{\sqrt{S}} = \tfrac{1}{\sqrt{S}} + \sqrt{S}$。两边相等,且 $y(1) = 1 \cdot \sqrt{4} = 2$。
Why this works. In a homogeneous equation only the ratio $\tfrac{y}{x}$ matters, so making that ratio the unknown $v$ leaves an equation where $x$ appears only through $\tfrac{dx}{x}$.
为什么可行。齐次方程中只有比值 $\tfrac{y}{x}$ 起作用,把这个比值设为未知函数 $v$ 后,$x$ 只以 $\tfrac{dx}{x}$ 的形式出现。
Write the separated integrals as a line of working ($\int e^{y}\,dy = \int e^{x}\,dx$) and add $+ C$ on the same line you integrate; substitute the initial condition only after that. If the question says "find $y$ in terms of $x$" or "in the form $y = f(x)$", an implicit answer such as $e^{y} = e^{x} + 1$ is not finished. For $y = vx$, write the line $\tfrac{dy}{dx} = v + x\tfrac{dv}{dx}$ explicitly and remember to return from $v$ to $\tfrac{y}{x}$ at the end.
把分离后的积分作为一行过程写出($\int e^{y}\,dy = \int e^{x}\,dx$),积分的同一行就加上 $+ C$;之后才代入初始条件。若题目说"把 $y$ 用 $x$ 表示"(find y in terms of x)或"写成 $y = f(x)$ 的形式",像 $e^{y} = e^{x} + 1$ 这样的隐式答案还没有做完。用 $y = vx$ 时,明确写出 $\tfrac{dy}{dx} = v + x\tfrac{dv}{dx}$ 这一行,最后记得把 $v$ 换回 $\tfrac{y}{x}$。
Solve $\tfrac{dy}{dx} = 3x^{2}y^{2}$ with $y(0) = 1$.求解 $\tfrac{dy}{dx} = 3x^{2}y^{2}$,$y(0) = 1$。
$\int y^{-2}\,dy = \int 3x^{2}\,dx$ gives $-\tfrac{1}{y} = x^{3} + C$. At $x = 0$: $-1 = C$. So $-\tfrac{1}{y} = x^{3} - 1$ and $y = \tfrac{1}{1 - x^{3}}$ (for $x < 1$). Check: $\tfrac{dy}{dx} = \tfrac{3x^{2}}{(1 - x^{3})^{2}} = 3x^{2}y^{2}$.
$\int y^{-2}\,dy = \int 3x^{2}\,dx$ 得 $-\tfrac{1}{y} = x^{3} + C$。$x = 0$ 时 $-1 = C$。所以 $-\tfrac{1}{y} = x^{3} - 1$,$y = \tfrac{1}{1 - x^{3}}$($x < 1$)。检验:$\tfrac{dy}{dx} = \tfrac{3x^{2}}{(1 - x^{3})^{2}} = 3x^{2}y^{2}$。
Which is separable: $\tfrac{dy}{dx} = x + y$ or $\tfrac{dy}{dx} = e^{x + y}$? Explain.$\tfrac{dy}{dx} = x + y$ 与 $\tfrac{dy}{dx} = e^{x + y}$ 中哪一个可分离?说明理由。
$e^{x + y} = e^{x}e^{y}$ is a product of an $x$-part and a $y$-part, so it is separable. The sum $x + y$ cannot be written as $f(x)\,g(y)$, so that equation is not separable (it is linear: $\tfrac{dy}{dx} - y = x$, solved by an integrating factor).
$e^{x + y} = e^{x}e^{y}$ 是"$x$ 部分乘 $y$ 部分",所以可分离。和式 $x + y$ 不能写成 $f(x)\,g(y)$,所以该方程不可分离(它是线性的:$\tfrac{dy}{dx} - y = x$,用积分因子求解)。
Use $y = vx$ to solve $\tfrac{dy}{dx} = \tfrac{x + y}{x}$ for $x > 0$ with $y(1) = 0$.用 $y = vx$ 求解 $\tfrac{dy}{dx} = \tfrac{x + y}{x}$($x > 0$),$y(1) = 0$。
$F(v) = 1 + v$, so $v + x\tfrac{dv}{dx} = 1 + v$, giving $x\tfrac{dv}{dx} = 1$ and $v = \ln x + C$. At $x = 1$, $v = 0$, so $C = 0$. Hence $y = x\ln x$. Check: $\tfrac{dy}{dx} = \ln x + 1$ and $\tfrac{x + x\ln x}{x} = 1 + \ln x$.
$F(v) = 1 + v$,所以 $v + x\tfrac{dv}{dx} = 1 + v$,得 $x\tfrac{dv}{dx} = 1$,$v = \ln x + C$。$x = 1$ 时 $v = 0$,所以 $C = 0$。于是 $y = x\ln x$。检验:$\tfrac{dy}{dx} = \ln x + 1$,而 $\tfrac{x + x\ln x}{x} = 1 + \ln x$。
Integrating Factor for Linear First-Order Equations线性一阶方程的积分因子 HL AHL 5.18
- Identify a linear first-order DE and rearrange it into the standard form $\tfrac{dy}{dx} + P(x)\,y = Q(x)$.
- Calculate the integrating factor $\mu(x) = e^{\int P(x)\,dx}$, simplifying expressions such as $e^{-2\ln x} = x^{-2}$.
- Explain why multiplying by $\mu$ turns the left-hand side into $\tfrac{d}{dx}(\mu y)$.
- Solve a linear DE for its general solution and apply an initial condition to find a particular solution.
- Verify the result by substituting it back into the original (not the rearranged) equation.
- 识别线性一阶方程并整理为标准形式 $\tfrac{dy}{dx} + P(x)\,y = Q(x)$。
- 计算(
calculate)积分因子(integrating factor)$\mu(x) = e^{\int P(x)\,dx}$,并化简如 $e^{-2\ln x} = x^{-2}$ 的表达式。 - 解释(
explain)为何乘以 $\mu$ 后左边变成 $\tfrac{d}{dx}(\mu y)$。 - 求线性方程的通解,并代入初始条件求特解。
- 把结果代回原方程(不是整理后的方程)进行验证。
The integrating factor. $$ \mu(x) \;=\; \exp\Bigl( \int P(x) \, dx \Bigr). $$ Multiplying the standard form by $\mu(x)$ collapses the left-hand side into a product-rule derivative: $$ \frac{d}{dx} \bigl( \mu(x) \, y \bigr) \;=\; \mu(x) \, Q(x). $$ Integrate both sides with respect to $x$ and divide by $\mu(x)$ to recover $y$.
Three-line workflow. Identify $P, Q$. Compute $\mu = e^{\int P \, dx}$ (no $+ C$ needed inside the exponent, since any constant just rescales $\mu$). Write $\mu y = \int \mu Q \, dx + C$ and solve for $y$.
积分因子。 $$ \mu(x) \;=\; \exp\Bigl( \int P(x) \, dx \Bigr). $$ 标准形式两边乘 $\mu(x)$ 后,左边化为乘积法则的导数: $$ \frac{d}{dx} \bigl( \mu(x) \, y \bigr) \;=\; \mu(x) \, Q(x). $$ 对 $x$ 积分两边、再除以 $\mu(x)$ 即得 $y$。
三行流程。识别 $P, Q$;算 $\mu = e^{\int P \, dx}$(指数内不必加 $+ C$,常数只缩放 $\mu$);写 $\mu y = \int \mu Q \, dx + C$ 并解出 $y$。
Worked Example E5.3: integrating factorE5.3 例题:积分因子
Solve $\dfrac{dy}{dx} + 2 x y = 4 x$.求解 $\dfrac{dy}{dx} + 2 x y = 4 x$。
Identify $P$ and $Q$. $P(x) = 2 x$ and $Q(x) = 4 x$.
识别 $P$ 与 $Q$。$P(x) = 2 x$,$Q(x) = 4 x$。
Compute the integrating factor.
算积分因子。
$$ \mu(x) \;=\; \exp\Bigl( \int 2 x \, dx \Bigr) \;=\; e^{x^{2}}. $$Multiply through and recognise the product-rule derivative.
两边乘 $\mu$,识别乘积法则。
$$ e^{x^{2}} \frac{dy}{dx} + 2 x \, e^{x^{2}} y \;=\; 4 x \, e^{x^{2}} \quad \Longleftrightarrow \quad \frac{d}{dx}\bigl( e^{x^{2}} y \bigr) \;=\; 4 x \, e^{x^{2}}. $$Integrate both sides. Substitute $u = x^{2}$, so $du = 2 x \, dx$ and $4 x \, dx = 2 \, du$:
两边积分。取 $u = x^{2}$,则 $du = 2 x \, dx$,$4 x \, dx = 2 \, du$:
$$ \int 4 x \, e^{x^{2}} \, dx \;=\; \int 2 \, e^{u} \, du \;=\; 2 \, e^{u} + C \;=\; 2 \, e^{x^{2}} + C. $$Therefore
故
$$ e^{x^{2}} y \;=\; 2 \, e^{x^{2}} + C. $$Solve for $y$. Divide by $e^{x^{2}}$:
解出 $y$。除以 $e^{x^{2}}$:
$$ y \;=\; 2 + C \, e^{-x^{2}}. $$Check. $\tfrac{dy}{dx} = -2 C x \, e^{-x^{2}}$, and $2 x y = 4 x + 2 C x \, e^{-x^{2}}$. Adding gives $\tfrac{dy}{dx} + 2 x y = 4 x$, which is the original equation.
检验。$\tfrac{dy}{dx} = -2 C x \, e^{-x^{2}}$,$2 x y = 4 x + 2 C x \, e^{-x^{2}}$。相加得 $\tfrac{dy}{dx} + 2 x y = 4 x$,与原方程一致。
Going deeper: why the integrating factor works深入:积分因子为何奏效
We want a function $\mu(x)$ such that $\mu y' + \mu P y$ is the derivative of some product. The product rule gives $\tfrac{d}{dx}(\mu y) = \mu' y + \mu y'$. Matching coefficients on $y$ requires $\mu' = \mu P$, which is itself a separable DE for $\mu$. Solving $\tfrac{d \mu}{\mu} = P \, dx$ gives $\ln |\mu| = \int P \, dx$, hence $\mu = e^{\int P \, dx}$ (the absolute value and overall sign are absorbed because any non-zero scalar multiple of $\mu$ still works). By construction, multiplying the standard form by this $\mu$ makes the left-hand side an exact derivative.
我们希望找到 $\mu(x)$ 使 $\mu y' + \mu P y$ 能写成某乘积的导数。由乘积法则 $\tfrac{d}{dx}(\mu y) = \mu' y + \mu y'$,要让 $y$ 的系数对得上需 $\mu' = \mu P$,这本身是一个关于 $\mu$ 的可分离方程。解 $\tfrac{d \mu}{\mu} = P \, dx$ 得 $\ln |\mu| = \int P \, dx$,故 $\mu = e^{\int P \, dx}$(绝对值与正负号可吸收,因为 $\mu$ 的任一非零数乘仍可作积分因子)。如此构造下,标准形式乘 $\mu$ 后左边恰为某函数的导数。
Worked Example E5.3b: rearrange to standard form, then use an initial conditionE5.3b 例题:先化为标准形式,再用初始条件
Solve $x\dfrac{dy}{dx} - 2y = x^{3}$ for $x > 0$, given that $y(1) = 3$.对 $x > 0$,已知 $y(1) = 3$,求解 $x\dfrac{dy}{dx} - 2y = x^{3}$。
Standard form. Divide every term by $x$: $\tfrac{dy}{dx} - \tfrac{2}{x}y = x^{2}$. So $P(x) = -\tfrac{2}{x}$ (the sign belongs to $P$) and $Q(x) = x^{2}$.
标准形式。每一项除以 $x$:$\tfrac{dy}{dx} - \tfrac{2}{x}y = x^{2}$。所以 $P(x) = -\tfrac{2}{x}$(负号属于 $P$),$Q(x) = x^{2}$。
Integrating factor.
积分因子。
$$ \mu(x) \;=\; e^{\int -2/x \, dx} \;=\; e^{-2\ln x} \;=\; x^{-2}. $$Multiply and integrate. $\tfrac{d}{dx}\bigl(x^{-2}y\bigr) = x^{-2} \cdot x^{2} = 1$, so $x^{-2}y = x + C$ and
相乘并积分。$\tfrac{d}{dx}\bigl(x^{-2}y\bigr) = x^{-2} \cdot x^{2} = 1$,所以 $x^{-2}y = x + C$,即
$$ y \;=\; x^{3} + Cx^{2}. $$Initial condition. $y(1) = 1 + C = 3$, so $C = 2$ and $y = x^{3} + 2x^{2}$.
初始条件。$y(1) = 1 + C = 3$,所以 $C = 2$,$y = x^{3} + 2x^{2}$。
Check in the original equation. $\tfrac{dy}{dx} = 3x^{2} + 4x$, so $x\tfrac{dy}{dx} - 2y = 3x^{3} + 4x^{2} - 2x^{3} - 4x^{2} = x^{3}$, and $y(1) = 1 + 2 = 3$.
在原方程中检验。$\tfrac{dy}{dx} = 3x^{2} + 4x$,所以 $x\tfrac{dy}{dx} - 2y = 3x^{3} + 4x^{2} - 2x^{3} - 4x^{2} = x^{3}$,且 $y(1) = 1 + 2 = 3$。
Why this works. The formula $\mu = e^{\int P\,dx}$ is derived for the standard form with coefficient $1$ on $\tfrac{dy}{dx}$; reading $P = -2$ from the unrearranged equation would give the wrong factor.
为什么可行。公式 $\mu = e^{\int P\,dx}$ 是针对 $\tfrac{dy}{dx}$ 系数为 $1$ 的标准形式推导的;若直接从未整理的方程读出 $P = -2$,得到的积分因子就是错的。
Before computing $\mu$, write the standard form as its own line so the coefficient of $\tfrac{dy}{dx}$ is visibly $1$ and the sign of $P$ is clear. Simplify the integrating factor fully ($e^{-2\ln x} = x^{-2}$, $e^{\ln \cos x} = \cos x$) and then write the line $\tfrac{d}{dx}(\mu y) = \mu Q$; this line is what shows the method was used. Put $+ C$ on the right before dividing by $\mu$, because the constant gets divided too.
计算 $\mu$ 之前,把标准形式单独写一行,让 $\tfrac{dy}{dx}$ 的系数明显是 $1$,$P$ 的符号也清楚。把积分因子化到最简($e^{-2\ln x} = x^{-2}$,$e^{\ln \cos x} = \cos x$),再写出 $\tfrac{d}{dx}(\mu y) = \mu Q$ 这一行:正是这一行说明你用了该方法。除以 $\mu$ 之前先在右边加 $+ C$,因为常数也要一起被除。
Find the general solution of $\tfrac{dy}{dx} - 3y = 6$ using an integrating factor.用积分因子求 $\tfrac{dy}{dx} - 3y = 6$ 的通解。
$P = -3$, so $\mu = e^{-3x}$. Then $\tfrac{d}{dx}(e^{-3x}y) = 6e^{-3x}$, so $e^{-3x}y = -2e^{-3x} + C$ and $y = -2 + Ce^{3x}$. Check: $\tfrac{dy}{dx} - 3y = 3Ce^{3x} + 6 - 3Ce^{3x} = 6$.
$P = -3$,所以 $\mu = e^{-3x}$。于是 $\tfrac{d}{dx}(e^{-3x}y) = 6e^{-3x}$,得 $e^{-3x}y = -2e^{-3x} + C$,$y = -2 + Ce^{3x}$。检验:$\tfrac{dy}{dx} - 3y = 3Ce^{3x} + 6 - 3Ce^{3x} = 6$。
Solve $\tfrac{dy}{dx} + y\tan x = \cos x$ for $-\tfrac{\pi}{2} < x < \tfrac{\pi}{2}$.在 $-\tfrac{\pi}{2} < x < \tfrac{\pi}{2}$ 上求解 $\tfrac{dy}{dx} + y\tan x = \cos x$。
$\int \tan x\,dx = -\ln(\cos x)$ (here $\cos x > 0$), so $\mu = e^{-\ln \cos x} = \sec x$. Then $\tfrac{d}{dx}(y\sec x) = \cos x \sec x = 1$, so $y\sec x = x + C$ and $y = (x + C)\cos x$. Check: $\tfrac{dy}{dx} = \cos x - (x + C)\sin x$ and $y\tan x = (x + C)\sin x$; the sum is $\cos x$.
$\int \tan x\,dx = -\ln(\cos x)$(此处 $\cos x > 0$),所以 $\mu = e^{-\ln \cos x} = \sec x$。于是 $\tfrac{d}{dx}(y\sec x) = \cos x \sec x = 1$,得 $y\sec x = x + C$,$y = (x + C)\cos x$。检验:$\tfrac{dy}{dx} = \cos x - (x + C)\sin x$,$y\tan x = (x + C)\sin x$,二者之和为 $\cos x$。
Solve $x\tfrac{dy}{dx} + y = 3x^{2}$ for $x > 0$. Why is no integrating factor needed?对 $x > 0$ 求解 $x\tfrac{dy}{dx} + y = 3x^{2}$。为什么不需要积分因子?
The left-hand side is already $\tfrac{d}{dx}(xy)$ by the product rule. So $xy = x^{3} + C$ and $y = x^{2} + \tfrac{C}{x}$. (The standard form has $P = \tfrac{1}{x}$, whose integrating factor is $x$: multiplying the standard form by $x$ just recovers the original equation.) Check: $x\tfrac{dy}{dx} + y = 2x^{2} - \tfrac{C}{x} + x^{2} + \tfrac{C}{x} = 3x^{2}$.
由乘积法则,左边本身就是 $\tfrac{d}{dx}(xy)$。所以 $xy = x^{3} + C$,$y = x^{2} + \tfrac{C}{x}$。(标准形式中 $P = \tfrac{1}{x}$,积分因子为 $x$:标准形式乘以 $x$ 恰好回到原方程。)检验:$x\tfrac{dy}{dx} + y = 2x^{2} - \tfrac{C}{x} + x^{2} + \tfrac{C}{x} = 3x^{2}$。
Euler's Method (Numerical)欧拉法(数值方法) HL AHL 5.18
- State Euler's method $x_{n+1} = x_{n} + h$, $y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$ for an initial-value problem.
- Calculate Euler approximations step by step in a table, keeping full precision between rows.
- Explain the method geometrically: each step follows the tangent line at the current point.
- Deduce whether an Euler estimate is too low or too high from the concavity of the solution curve.
- Compare estimates for two step sizes with an exact value and describe how the error changes when $h$ is halved.
- 写出(
state)初值问题的欧拉法(Euler's method):$x_{n+1} = x_{n} + h$,$y_{n+1} = y_{n} + h\,f(x_{n}, y_{n})$。 - 在表格中逐步计算(
calculate)欧拉近似值,各行之间保留全部精度。 - 从几何上解释该方法:每一步都沿当前点的切线前进。
- 由解曲线的凹凸性推断(
deduce)欧拉估计偏低还是偏高。 - 比较两种步长下的估计值与精确值,描述 $h$ 减半时误差如何变化。
Error behaviour. Halving $h$ roughly halves the total error (Euler is first-order accurate). The trade-off is twice the arithmetic. For exam problems with two or three steps, hand computation is expected; show every $f(x_{n}, y_{n})$ value.
误差行为。$h$ 减半,总误差大致减半(欧拉法为一阶精度),但运算量翻倍。考题通常只要走两三步,要求手算;每个 $f(x_{n}, y_{n})$ 必须写出。
Worked Example E5.4: Euler with two stepsE5.4 例题:欧拉两步
Use Euler's method with step size $h = 0.1$ to approximate $y(0.2)$ for the initial-value problem $\dfrac{dy}{dx} = x + y$, $y(0) = 1$.用步长 $h = 0.1$ 的欧拉法近似初值问题 $\dfrac{dy}{dx} = x + y$、$y(0) = 1$ 的 $y(0.2)$。
Setup. $f(x, y) = x + y$. Start at $(x_{0}, y_{0}) = (0, 1)$.
设置。$f(x, y) = x + y$。起点 $(x_{0}, y_{0}) = (0, 1)$。
Step 1: advance to $x_{1} = 0.1$.
第 1 步:推进到 $x_{1} = 0.1$。
$$ f(x_{0}, y_{0}) \;=\; 0 + 1 \;=\; 1, \qquad y_{1} \;=\; y_{0} + h \cdot f(x_{0}, y_{0}) \;=\; 1 + 0.1 \cdot 1 \;=\; 1.1. $$Step 2: advance to $x_{2} = 0.2$.
第 2 步:推进到 $x_{2} = 0.2$。
$$ f(x_{1}, y_{1}) \;=\; 0.1 + 1.1 \;=\; 1.2, \qquad y_{2} \;=\; y_{1} + h \cdot f(x_{1}, y_{1}) \;=\; 1.1 + 0.1 \cdot 1.2 \;=\; 1.22. $$Approximation. $y(0.2) \approx 1.22$.
近似值。$y(0.2) \approx 1.22$。
Remark. The exact solution to this initial-value problem is $y(x) = 2 e^{x} - x - 1$, giving $y(0.2) = 2 e^{0.2} - 1.2 \approx 1.2428$. The Euler estimate $1.22$ is low by about $0.023$. Halving $h$ to $0.05$ (four steps instead of two) would roughly halve that error.
注记。本题的精确解为 $y(x) = 2 e^{x} - x - 1$,故 $y(0.2) = 2 e^{0.2} - 1.2 \approx 1.2428$。欧拉估计 $1.22$ 偏小约 $0.023$。$h$ 减半到 $0.05$(改为四步)可大致把误差减半。
Worked Example E5.4b: four Euler steps in a table, and the effect of halving hE5.4b 例题:表格中的四步欧拉法,以及 h 减半的效果
Repeat Worked Example E5.4 ($\dfrac{dy}{dx} = x + y$, $y(0) = 1$) with step size $h = 0.05$ to approximate $y(0.2)$. Compare the error with the $h = 0.1$ estimate $1.22$, using the exact value $y(0.2) = 2e^{0.2} - 1.2 \approx 1.2428$.用步长 $h = 0.05$ 重做例题 E5.4($\dfrac{dy}{dx} = x + y$,$y(0) = 1$),近似 $y(0.2)$。利用精确值 $y(0.2) = 2e^{0.2} - 1.2 \approx 1.2428$,把误差与 $h = 0.1$ 时的估计 $1.22$ 比较。
Table. Four steps take $x$ from $0$ to $0.2$. Each row uses $y_{n+1} = y_{n} + 0.05\,(x_{n} + y_{n})$.
列表。四步把 $x$ 从 $0$ 推进到 $0.2$。每行使用 $y_{n+1} = y_{n} + 0.05\,(x_{n} + y_{n})$。
| $n$ | $x_{n}$ | $y_{n}$ | $f(x_{n}, y_{n}) = x_{n} + y_{n}$ | $h \cdot f$ | $y_{n+1}$ |
|---|---|---|---|---|---|
| $0$ | $0$ | $1$ | $1$ | $0.05$ | $1.05$ |
| $1$ | $0.05$ | $1.05$ | $1.1$ | $0.055$ | $1.105$ |
| $2$ | $0.1$ | $1.105$ | $1.205$ | $0.06025$ | $1.16525$ |
| $3$ | $0.15$ | $1.16525$ | $1.31525$ | $0.0657625$ | $1.2310125$ |
Estimate. $y(0.2) \approx 1.2310$ (to 4 d.p.).
估计值。$y(0.2) \approx 1.2310$(保留 4 位小数)。
Errors. With $h = 0.1$: $1.2428 - 1.22 = 0.0228$. With $h = 0.05$: $1.2428 - 1.2310 = 0.0118$. Halving $h$ cut the error to about $0.52$ of its value, close to one half, as expected for a first-order method.
误差。$h = 0.1$ 时:$1.2428 - 1.22 = 0.0228$。$h = 0.05$ 时:$1.2428 - 1.2310 = 0.0118$。$h$ 减半使误差变为原来的约 $0.52$ 倍,接近一半,符合一阶方法的预期。
Why both estimates are low. The exact solution $y = 2e^{x} - x - 1$ has $y'' = 2e^{x} > 0$, so it is concave up and every tangent line lies below the curve. Each Euler step follows a tangent, so the estimates undershoot.
为什么两个估计都偏低。精确解 $y = 2e^{x} - x - 1$ 满足 $y'' = 2e^{x} > 0$,曲线上凹,每条切线都在曲线下方。欧拉法每一步都沿切线前进,所以估计偏低。
Keep unrounded values from one row to the next and round only the final answer, to the accuracy the question asks for; rounding every row lets errors build up. Check that the number of steps is $\tfrac{x_{\text{end}} - x_{0}}{h}$ before you start. If asked whether the estimate is an under- or overestimate, justify it with the concavity of the solution (the sign of $\tfrac{d^{2}y}{dx^{2}}$), not with the size of $h$.
各行之间保留未取整的数值,只对最终答案按题目要求的精度取整;每行都取整会让误差累积。开始之前先确认步数为 $\tfrac{x_{\text{end}} - x_{0}}{h}$。若题目问估计是偏低还是偏高(underestimate / overestimate),要用解曲线的凹凸性($\tfrac{d^{2}y}{dx^{2}}$ 的符号)说明,而不是用 $h$ 的大小。
For $\tfrac{dy}{dx} = x^{2} + y$ with $y(1) = 2$, use one Euler step with $h = 0.1$ to estimate $y(1.1)$.对 $\tfrac{dy}{dx} = x^{2} + y$,$y(1) = 2$,用一步步长 $h = 0.1$ 的欧拉法估计 $y(1.1)$。
$f(1, 2) = 1 + 2 = 3$, so $y_{1} = 2 + 0.1 \times 3 = 2.3$. Hence $y(1.1) \approx 2.3$.
$f(1, 2) = 1 + 2 = 3$,所以 $y_{1} = 2 + 0.1 \times 3 = 2.3$。于是 $y(1.1) \approx 2.3$。
For $\tfrac{dy}{dx} = y - x$ with $y(0) = 2$, use Euler's method with $h = 0.5$ to estimate $y(1)$, and compare with the exact solution $y = x + 1 + e^{x}$.对 $\tfrac{dy}{dx} = y - x$,$y(0) = 2$,用步长 $h = 0.5$ 的欧拉法估计 $y(1)$,并与精确解 $y = x + 1 + e^{x}$ 比较。
Step 1: $f(0, 2) = 2$, so $y_{1} = 2 + 0.5 \times 2 = 3$ at $x = 0.5$. Step 2: $f(0.5, 3) = 2.5$, so $y_{2} = 3 + 0.5 \times 2.5 = 4.25$ at $x = 1$. Exact: $y(1) = 2 + e \approx 4.718$, so the estimate is low by about $0.468$. (Check of the exact solution: $\tfrac{dy}{dx} = 1 + e^{x}$ and $y - x = 1 + e^{x}$; $y(0) = 0 + 1 + 1 = 2$.)
第 1 步:$f(0, 2) = 2$,所以在 $x = 0.5$ 处 $y_{1} = 2 + 0.5 \times 2 = 3$。第 2 步:$f(0.5, 3) = 2.5$,所以在 $x = 1$ 处 $y_{2} = 3 + 0.5 \times 2.5 = 4.25$。精确值:$y(1) = 2 + e \approx 4.718$,估计偏低约 $0.468$。(检验精确解:$\tfrac{dy}{dx} = 1 + e^{x}$,$y - x = 1 + e^{x}$;$y(0) = 0 + 1 + 1 = 2$。)
Explain why Euler's method underestimates the solution of $\tfrac{dy}{dx} = y$, $y(0) = 1$, for $x > 0$.解释为何对 $\tfrac{dy}{dx} = y$,$y(0) = 1$,欧拉法在 $x > 0$ 时低估了解。
The solution is $y = e^{x}$, and $\tfrac{d^{2}y}{dx^{2}} = \tfrac{dy}{dx} = y > 0$, so the curve is concave up. A tangent line to a concave-up curve lies below it, and each Euler step moves along a tangent, so every estimate falls below the true value (for example $1.5 < e^{0.5} \approx 1.649$ with $h = 0.5$).
解为 $y = e^{x}$,且 $\tfrac{d^{2}y}{dx^{2}} = \tfrac{dy}{dx} = y > 0$,所以曲线上凹。上凹曲线的切线在曲线下方,而欧拉法每一步都沿切线移动,所以每个估计都低于真实值(例如 $h = 0.5$ 时 $1.5 < e^{0.5} \approx 1.649$)。
Slope (Direction) Fields斜率场(方向场) HL AHL 5.18
- Calculate the slope of the slope-field segment at a grid point as $f(x, y)$.
- Find the zero-slope isocline $f(x, y) = 0$ and identify any constant (equilibrium) solutions.
- Sketch a solution curve through a given point that is tangent to the segments it passes.
- Deduce which of several slope fields matches a given DE by testing zeros and signs.
- Explain the difference between a zero-slope isocline and a solution curve.
- 把格点处斜率场(
slope field)线段的斜率计算(calculate)为 $f(x, y)$。 - 求零斜率等倾线(
isocline)$f(x, y) = 0$,并找出常值(平衡)解。 - 过给定点画出(
sketch)与所经线段相切的解曲线。 - 通过检验零点与符号,推断(
deduce)几张斜率场中哪一张对应给定方程。 - 解释零斜率等倾线与解曲线的区别。
Reading a slope field.
- Horizontal segments ($f = 0$) mark equilibrium or turning behaviour. Constant solutions $y = c$ live where $f(x, c) = 0$ for all $x$.
- Steep upward segments ($f$ large positive) indicate fast growth; steep downward ($f$ large negative) indicate fast decay.
- If $f(x, y)$ depends only on $y$ (the DE is autonomous), all segments at the same $y$-level have the same slope: the field is invariant under horizontal shifts.
读图要点。
- 水平线段($f = 0$)标记平衡或极值。常值解 $y = c$ 出现在 $f(x, c) = 0$ 对所有 $x$ 成立处。
- 陡峭向上线段($f$ 大正)表示快速增长;陡峭向下($f$ 大负)表示快速衰减。
- 若 $f(x, y)$ 只依赖 $y$(自治方程),同一 $y$ 高度上所有线段斜率相同:斜率场在水平方向平移不变。
Worked Example E5.5: read a slope fieldE5.5 例题:读斜率场
For the DE $\dfrac{dy}{dx} = y - x$, compute the slope at the grid points $(0, 0)$, $(0, 1)$, $(1, 0)$, $(1, 1)$, $(2, 1)$, and describe how a solution curve passing through $(0, 1)$ behaves locally.对方程 $\dfrac{dy}{dx} = y - x$,在格点 $(0, 0)$、$(0, 1)$、$(1, 0)$、$(1, 1)$、$(2, 1)$ 求斜率,并描述过 $(0, 1)$ 的解曲线在局部的行为。
Tabulate slopes. Slope at $(x, y)$ equals $y - x$.
列表算斜率。$(x, y)$ 处的斜率为 $y - x$。
| $(x, y)$ | $(0, 0)$ | $(0, 1)$ | $(1, 0)$ | $(1, 1)$ | $(2, 1)$ |
|---|---|---|---|---|---|
| Slope $f(x, y)$ | $0$ | $1$ | $-1$ | $0$ | $-1$ |
Zero-slope line. Slope is zero whenever $y = x$. The line $y = x$ is a locus of horizontal segments (the zero-slope isocline). It is not itself a solution: along $y = x$ the line rises with gradient $1$, but the DE demands gradient $0$ there. Above the line the segments slope upward; below it they slope downward.
零斜率线。$y = x$ 时斜率为零。直线 $y = x$ 是水平线段的轨迹(零斜率等倾线)。它本身不是解:沿 $y = x$ 直线的斜率为 $1$,而方程要求该处斜率为 $0$。直线上方线段向上倾斜,下方线段向下倾斜。
Behaviour through $(0, 1)$. At $(0, 1)$ the slope is $+1$, so the solution starts heading up-right at $45^{\circ}$. Notice that every point on the line $y = x + 1$ has slope $(x + 1) - x = 1$, exactly the gradient of that line. So the line $y = x + 1$ is itself the solution through $(0, 1)$: the curve stays one unit above the zero-slope line $y = x$ forever and never turns. (Check: $y = x + 1$ gives $\tfrac{dy}{dx} = 1$ and $y - x = 1$.)
过 $(0, 1)$ 的局部行为。$(0, 1)$ 处斜率 $+1$,解曲线以 $45^{\circ}$ 向右上方出发。注意直线 $y = x + 1$ 上每一点的斜率都是 $(x + 1) - x = 1$,恰好等于这条直线自身的斜率。所以直线 $y = x + 1$ 本身就是过 $(0, 1)$ 的解:曲线始终位于零斜率线 $y = x$ 上方一个单位处,永不转向。(检验:$y = x + 1$ 给出 $\tfrac{dy}{dx} = 1$,且 $y - x = 1$。)
Going deeper: matching a solution to a slope field深入:将解与斜率场匹配
A common exam task shows three or four candidate slope-field diagrams and asks which one corresponds to a given DE. The drill is: pick two or three test points where the DE is easy to evaluate (often along the axes), compute the slope, and check which diagram has matching segments. Look first at where the slope is zero (horizontal segments): that is the fastest discriminator between candidate fields.
常见题型给出三四张候选斜率场图,问哪一张对应给定方程。做法:选两三个易代入的测试点(通常在坐标轴上)计算斜率,再核对哪张图的线段方向相符。最先看的应是零斜率位置(水平线段),它是最快区分候选图的特征。
Worked Example E5.5b: slope field of dy/dx = x + y and a solution curveE5.5b 例题:dy/dx = x + y 的斜率场与一条解曲线
For $\dfrac{dy}{dx} = x + y$: (a) find the zero-slope isocline; (b) show that the line $y = -x - 1$ is a solution; (c) verify that $y = 2e^{x} - x - 1$ is the solution through $(0, 1)$ and find its minimum point; (d) describe the curve on the slope field in Figure 1.对 $\dfrac{dy}{dx} = x + y$:(a) 求零斜率等倾线;(b) 证明直线 $y = -x - 1$ 是一个解;(c) 验证 $y = 2e^{x} - x - 1$ 是过 $(0, 1)$ 的解,并求其最小值点;(d) 结合图 1 的斜率场描述这条曲线。
(a) The slope is zero where $x + y = 0$, so the zero-slope isocline is $y = -x$.
(a) 斜率为零处满足 $x + y = 0$,所以零斜率等倾线为 $y = -x$。
(b) On $y = -x - 1$, the slope field gives $x + y = x - x - 1 = -1$ at every point, and the line itself has gradient $-1$. So $\tfrac{dy}{dx} = -1 = x + y$ holds everywhere on it: the line is a solution.
(b) 在 $y = -x - 1$ 上,斜率场处处给出 $x + y = x - x - 1 = -1$,而这条直线本身的斜率也是 $-1$。所以其上处处有 $\tfrac{dy}{dx} = -1 = x + y$:该直线是一个解。
(c) $\tfrac{dy}{dx} = 2e^{x} - 1$ and $x + y = x + 2e^{x} - x - 1 = 2e^{x} - 1$, so the DE holds; $y(0) = 2 - 0 - 1 = 1$. The minimum is where $\tfrac{dy}{dx} = 0$: $e^{x} = \tfrac{1}{2}$, so $x = -\ln 2 \approx -0.693$ and $y = 1 + \ln 2 - 1 = \ln 2 \approx 0.693$. The minimum point $(-\ln 2, \ln 2)$ lies on the isocline $y = -x$, as it must.
(c) $\tfrac{dy}{dx} = 2e^{x} - 1$,而 $x + y = x + 2e^{x} - x - 1 = 2e^{x} - 1$,所以方程成立;$y(0) = 2 - 0 - 1 = 1$。最小值处 $\tfrac{dy}{dx} = 0$:$e^{x} = \tfrac{1}{2}$,所以 $x = -\ln 2 \approx -0.693$,$y = 1 + \ln 2 - 1 = \ln 2 \approx 0.693$。最小值点 $(-\ln 2, \ln 2)$ 恰好位于等倾线 $y = -x$ 上,这是必然的。
(d) To the left of the isocline the segments slope down, so the curve falls; it crosses $y = -x$ with a horizontal tangent at its minimum and then climbs ever more steeply, because $x + y$ keeps growing. It stays above the straight-line solution $y = -x - 1$: two solution curves of this DE never cross.
(d) 在等倾线左侧线段向下倾斜,所以曲线下降;它在最小值点以水平切线穿过 $y = -x$,之后越来越陡地上升,因为 $x + y$ 不断增大。它始终位于直线解 $y = -x - 1$ 的上方:该方程的两条解曲线永不相交。
Why this works. A solution curve has, at each of its points, exactly the gradient the field prescribes there; so a straight line whose gradient matches the field all along it is a solution, and the zero-slope isocline is where solution curves have horizontal tangents.
为什么可行。解曲线在其每一点的斜率恰好等于斜率场在该点规定的斜率;所以若一条直线的斜率处处与斜率场一致,它就是解;而零斜率等倾线就是解曲线取水平切线的地方。
When asked to "sketch" a solution curve on a given slope field, start exactly at the given point, keep the curve tangent to the segments it passes, and give it a horizontal tangent where it crosses the zero-slope isocline. Do not let it cross another solution curve or an equilibrium line. To match a field to a DE, first locate where $f(x, y) = 0$, then test the sign of $f$ at one point on each side.
题目要求在给定斜率场上"画出"(sketch)解曲线时,要恰好从给定点出发,让曲线与所经过的线段相切,并在穿过零斜率等倾线处画成水平切线。不要让它与另一条解曲线或平衡线相交。把斜率场与方程配对时,先找 $f(x, y) = 0$ 的位置,再在其两侧各取一点检验 $f$ 的符号。
For $\tfrac{dy}{dx} = x - 2y$, find the slopes at $(2, 1)$, $(0, 1)$ and $(1, -1)$, and the zero-slope isocline.对 $\tfrac{dy}{dx} = x - 2y$,求 $(2, 1)$、$(0, 1)$、$(1, -1)$ 处的斜率,以及零斜率等倾线。
$(2, 1)$: $2 - 2 = 0$. $(0, 1)$: $0 - 2 = -2$. $(1, -1)$: $1 + 2 = 3$. The isocline is $x - 2y = 0$, that is $y = \tfrac{x}{2}$.
$(2, 1)$:$2 - 2 = 0$。$(0, 1)$:$0 - 2 = -2$。$(1, -1)$:$1 + 2 = 3$。等倾线为 $x - 2y = 0$,即 $y = \tfrac{x}{2}$。
For $\tfrac{dy}{dx} = y(2 - y)$, find the constant solutions and describe the solution through $(0, 1)$.对 $\tfrac{dy}{dx} = y(2 - y)$,求常值解,并描述过 $(0, 1)$ 的解。
$y(2 - y) = 0$ for all $x$ when $y = 0$ or $y = 2$, so $y = 0$ and $y = 2$ are constant solutions (rows of horizontal segments). For $0 < y < 2$ the slope is positive, so the curve through $(0, 1)$ (slope $1$ there) rises and approaches $y = 2$ as $x$ increases without reaching it; to the left it falls towards $y = 0$.
当 $y = 0$ 或 $y = 2$ 时,$y(2 - y) = 0$ 对所有 $x$ 成立,所以 $y = 0$ 与 $y = 2$ 是常值解(成排的水平线段)。当 $0 < y < 2$ 时斜率为正,所以过 $(0, 1)$ 的曲线(该处斜率为 $1$)随 $x$ 增大而上升并趋近 $y = 2$,但不会到达;向左则下降并趋近 $y = 0$。
A slope field has horizontal segments all along the line $y = 3$, and on each horizontal line every segment has the same slope. Which DE fits: $\tfrac{dy}{dx} = 3 - y$, $\tfrac{dy}{dx} = x - 3$ or $\tfrac{dy}{dx} = 3x$?某斜率场在整条直线 $y = 3$ 上都是水平线段,且同一水平线上所有线段斜率相同。哪个方程符合:$\tfrac{dy}{dx} = 3 - y$、$\tfrac{dy}{dx} = x - 3$ 还是 $\tfrac{dy}{dx} = 3x$?
$\tfrac{dy}{dx} = 3 - y$. Its slope depends on $y$ only, so it is constant along each horizontal line, and it is zero when $y = 3$. The other two depend on $x$ only: their zero slopes lie along the vertical lines $x = 3$ and $x = 0$.
$\tfrac{dy}{dx} = 3 - y$。它的斜率只依赖 $y$,所以在每条水平线上为常数,且在 $y = 3$ 处为零。另两个只依赖 $x$:它们的零斜率分别位于竖直线 $x = 3$ 与 $x = 0$ 上。
Applications: Growth, Decay, Cooling应用:增长、衰减、冷却 HL AHL 5.18
- State the DEs for exponential growth or decay, Newton's law of cooling and logistic growth.
- Solve each model with separation of variables and an initial condition.
- Calculate the rate constant $k$ from a second data point, keeping it exact as a logarithm.
- Calculate times and rates from the solved model, with units.
- Interpret the long-term behaviour (ambient temperature, carrying capacity) in context.
- 写出(
state)指数增长或衰减、牛顿冷却律与逻辑斯蒂增长(logistic growth)的微分方程。 - 用分离变量法与初始条件求解每个模型。
- 由第二个数据点计算(
calculate)速率常数 $k$,并以对数形式保留精确值。 - 由所得模型计算时间与变化率,并写明单位。
- 在情境中解释(
interpret)长期行为(环境温度、环境容量)。
- Exponential growth or decay. $\tfrac{dy}{dt} = k y$ with $k$ constant. Separable. Solution $y(t) = y_{0} e^{k t}$. Positive $k$ gives growth; negative $k$ gives decay.
- Newton's law of cooling. $\tfrac{dT}{dt} = -k (T - T_{\text{env}})$ with $k > 0$ and $T_{\text{env}}$ the ambient temperature. Separable after the substitution $u = T - T_{\text{env}}$. Solution $T(t) = T_{\text{env}} + (T_{0} - T_{\text{env}}) e^{-k t}$.
- Logistic growth. $\tfrac{dP}{dt} = k P (M - P)$ with $M > 0$ the carrying capacity. Separable; the $P$-side needs partial fractions. Solution $P(t) = \dfrac{M}{1 + B e^{-k M t}}$ for some constant $B$ fixed by the initial condition.
- 指数增长或衰减。$\tfrac{dy}{dt} = k y$($k$ 为常数)。可分离。解 $y(t) = y_{0} e^{k t}$。$k > 0$ 增长,$k < 0$ 衰减。
- 牛顿冷却律。$\tfrac{dT}{dt} = -k (T - T_{\text{env}})$($k > 0$,$T_{\text{env}}$ 为环境温度)。换元 $u = T - T_{\text{env}}$ 后可分离。解 $T(t) = T_{\text{env}} + (T_{0} - T_{\text{env}}) e^{-k t}$。
- 逻辑斯蒂增长。$\tfrac{dP}{dt} = k P (M - P)$($M > 0$ 为环境容量)。可分离;$P$ 一侧需部分分式。解 $P(t) = \dfrac{M}{1 + B e^{-k M t}}$,$B$ 由初始条件确定。
Worked Example E5.6: Newton's law of coolingE5.6 例题:牛顿冷却律
A cup of coffee at $T(0) = 95^{\circ}\text{C}$ sits in a room at constant temperature $T_{\text{env}} = 22^{\circ}\text{C}$. It cools according to Newton's law $\tfrac{dT}{dt} = -k (T - T_{\text{env}})$. Find an explicit formula for $T(t)$ in terms of $k$ and $t$.一杯咖啡 $T(0) = 95^{\circ}\text{C}$ 放在恒温 $T_{\text{env}} = 22^{\circ}\text{C}$ 的房间中,按牛顿冷却律 $\tfrac{dT}{dt} = -k (T - T_{\text{env}})$ 散热。求 $T(t)$ 关于 $k$ 与 $t$ 的显式表达。
Substitute $u = T - 22$. Then $\tfrac{du}{dt} = \tfrac{dT}{dt}$, and the DE becomes
换元 $u = T - 22$。则 $\tfrac{du}{dt} = \tfrac{dT}{dt}$,方程化为
$$ \frac{du}{dt} \;=\; -k \, u. $$Solve the reduced DE. Separate: $\tfrac{du}{u} = -k \, dt$. Integrate: $\ln |u| = -k t + C_{1}$, so $u = A e^{-k t}$ with $A$ a real constant.
解化简后的方程。分离:$\tfrac{du}{u} = -k \, dt$。积分:$\ln |u| = -k t + C_{1}$,故 $u = A e^{-k t}$,$A$ 为实常数。
Translate back. $T = u + 22 = 22 + A e^{-k t}$.
换回原变量。$T = u + 22 = 22 + A e^{-k t}$。
Apply the initial condition. $T(0) = 95$ gives $95 = 22 + A$, so $A = 73$.
代入初始条件。$T(0) = 95$ 得 $95 = 22 + A$,故 $A = 73$。
Final formula.
最终公式。
$$ T(t) \;=\; 22 + 73 \, e^{-k t}. $$Sanity checks. At $t = 0$, $T(0) = 22 + 73 = 95$. As $t \to \infty$, $T(t) \to 22$, the ambient temperature. Both consistent with the physical setup.
合理性检查。$t = 0$ 时 $T(0) = 22 + 73 = 95$。$t \to \infty$ 时 $T(t) \to 22$,即环境温度。物理意义一致。
Going deeper: deriving the logistic solution深入:推导逻辑斯蒂方程的解
Starting from $\tfrac{dP}{dt} = k P (M - P)$, separate: $$ \frac{dP}{P (M - P)} \;=\; k \, dt. $$ Decompose by partial fractions: $\tfrac{1}{P (M - P)} = \tfrac{1}{M} \bigl( \tfrac{1}{P} + \tfrac{1}{M - P} \bigr)$. Integrate both sides: $$ \frac{1}{M} \bigl( \ln |P| - \ln |M - P| \bigr) \;=\; k t + C_{1} \quad \Longrightarrow \quad \ln \Bigl| \frac{P}{M - P} \Bigr| \;=\; k M t + C_{2}. $$ Exponentiate: $\tfrac{P}{M - P} = D e^{k M t}$. Solve for $P$: $$ P \;=\; (M - P) D e^{k M t} \quad \Longrightarrow \quad P \bigl( 1 + D e^{k M t} \bigr) \;=\; M D e^{k M t} \quad \Longrightarrow \quad P \;=\; \frac{M}{1 + B e^{-k M t}}, $$ where $B = 1 / D$. As $t \to \infty$, $P \to M$, recovering the carrying-capacity behaviour.
由 $\tfrac{dP}{dt} = k P (M - P)$ 出发,分离: $$ \frac{dP}{P (M - P)} \;=\; k \, dt. $$ 部分分式:$\tfrac{1}{P (M - P)} = \tfrac{1}{M} \bigl( \tfrac{1}{P} + \tfrac{1}{M - P} \bigr)$。两边积分: $$ \frac{1}{M} \bigl( \ln |P| - \ln |M - P| \bigr) \;=\; k t + C_{1} \quad \Longrightarrow \quad \ln \Bigl| \frac{P}{M - P} \Bigr| \;=\; k M t + C_{2}. $$ 取指数:$\tfrac{P}{M - P} = D e^{k M t}$。解出 $P$: $$ P \;=\; (M - P) D e^{k M t} \quad \Longrightarrow \quad P \bigl( 1 + D e^{k M t} \bigr) \;=\; M D e^{k M t} \quad \Longrightarrow \quad P \;=\; \frac{M}{1 + B e^{-k M t}}, $$ 其中 $B = 1 / D$。$t \to \infty$ 时 $P \to M$,复现环境容量行为。
Worked Example E5.6b: find k from data, then a time and a rateE5.6b 例题:由数据求 k,再求时间与变化率
The coffee in Worked Example E5.6, with $T(t) = 22 + 73e^{-kt}$ ($t$ in minutes), has cooled to $60^{\circ}\text{C}$ after $5$ minutes. (a) Find $k$. (b) Find when the coffee reaches $40^{\circ}\text{C}$. (c) Find the rate of cooling at that moment.例题 E5.6 中的咖啡满足 $T(t) = 22 + 73e^{-kt}$($t$ 以分钟计),$5$ 分钟后降到 $60^{\circ}\text{C}$。(a) 求 $k$。(b) 求咖啡何时降到 $40^{\circ}\text{C}$。(c) 求该时刻的降温速率。
(a) $60 = 22 + 73e^{-5k}$ gives $e^{-5k} = \tfrac{38}{73}$, so
(a) 由 $60 = 22 + 73e^{-5k}$ 得 $e^{-5k} = \tfrac{38}{73}$,所以
$$ k \;=\; \frac{1}{5}\ln\frac{73}{38} \;\approx\; 0.1306 \ \text{per minute}. $$(b) $40 = 22 + 73e^{-kt}$ gives $e^{-kt} = \tfrac{18}{73}$, so $t = \dfrac{\ln(73/18)}{k} = \dfrac{5\ln(73/18)}{\ln(73/38)} \approx \dfrac{1.4001}{0.13057} \approx 10.7$ minutes.
(b) 由 $40 = 22 + 73e^{-kt}$ 得 $e^{-kt} = \tfrac{18}{73}$,所以 $t = \dfrac{\ln(73/18)}{k} = \dfrac{5\ln(73/18)}{\ln(73/38)} \approx \dfrac{1.4001}{0.13057} \approx 10.7$ 分钟。
(c) Use the DE directly: $\tfrac{dT}{dt} = -k(T - 22) = -k(40 - 22) = -18k \approx -2.35$, so the coffee is cooling at about $2.35^{\circ}\text{C}$ per minute.
(c) 直接用微分方程:$\tfrac{dT}{dt} = -k(T - 22) = -k(40 - 22) = -18k \approx -2.35$,所以咖啡正以每分钟约 $2.35^{\circ}\text{C}$ 的速率降温。
Check. $T(5) = 22 + 73 \times \tfrac{38}{73} = 60$ and $T(t) = 22 + 73 \times \tfrac{18}{73} = 40$ at the time found in (b).
检验。$T(5) = 22 + 73 \times \tfrac{38}{73} = 60$;在 (b) 求得的时刻 $T(t) = 22 + 73 \times \tfrac{18}{73} = 40$。
Why this works. One data point fixes the constant of integration, a second fixes $k$; and a rate at a known temperature comes straight from the DE, with no need to differentiate the solution.
为什么可行。一个数据点确定积分常数,第二个数据点确定 $k$;已知温度时的变化率可直接由微分方程得到,无需对解求导。
Keep $k$ exact (for example $\tfrac{1}{5}\ln\tfrac{73}{38}$) and use that form, or its full calculator value, in later parts; a rounded $k$ carried into an exponent can shift the final answer. State units for every time and rate, and give a sign or a word for direction ("cooling at $2.35^{\circ}\text{C}$ per minute"). Finish with a sense check: a cooling object approaches the room temperature and never passes it; a logistic population approaches its carrying capacity.
保留 $k$ 的精确形式(例如 $\tfrac{1}{5}\ln\tfrac{73}{38}$),后面各小问用该形式或计算器的完整数值;把取整后的 $k$ 带进指数可能改变最终答案。每个时间与变化率都要写单位,并用符号或文字说明方向("以每分钟 $2.35^{\circ}\text{C}$ 降温")。最后做合理性检查:冷却物体趋近室温而不会越过它;逻辑斯蒂种群趋近其环境容量(carrying capacity)。
A population satisfies $\tfrac{dP}{dt} = 0.04P$ ($t$ in years) with $P(0) = 500$. Find the time for the population to double.某种群满足 $\tfrac{dP}{dt} = 0.04P$($t$ 以年计),$P(0) = 500$。求种群翻倍所需时间。
$P = 500e^{0.04t}$. Doubling: $e^{0.04t} = 2$, so $t = \tfrac{\ln 2}{0.04} \approx 17.3$ years. The doubling time does not depend on the starting value $500$.
$P = 500e^{0.04t}$。翻倍:$e^{0.04t} = 2$,所以 $t = \tfrac{\ln 2}{0.04} \approx 17.3$ 年。翻倍时间与初始值 $500$ 无关。
For $\tfrac{dP}{dt} = 0.002P(500 - P)$ with $P(0) = 50$, state the carrying capacity, the initial growth rate, and the population at which growth is fastest.对 $\tfrac{dP}{dt} = 0.002P(500 - P)$,$P(0) = 50$,写出环境容量、初始增长速率,以及增长最快时的种群数量。
Carrying capacity $M = 500$. Initial rate: $0.002 \times 50 \times 450 = 45$ per unit time. $P(500 - P)$ is a downward parabola in $P$ with its vertex at $P = 250$, so growth is fastest at $P = 250$, where the rate is $0.002 \times 250 \times 250 = 125$.
环境容量 $M = 500$。初始速率:$0.002 \times 50 \times 450 = 45$(每单位时间)。$P(500 - P)$ 是关于 $P$ 开口向下的抛物线,顶点在 $P = 250$,所以 $P = 250$ 时增长最快,此时速率为 $0.002 \times 250 \times 250 = 125$。
An object at $90^{\circ}\text{C}$ is placed in a room at $20^{\circ}\text{C}$ and cools by Newton's law with $k = 0.1$ per minute. When does it reach $55^{\circ}\text{C}$?一个 $90^{\circ}\text{C}$ 的物体放入 $20^{\circ}\text{C}$ 的房间,按牛顿冷却律降温,$k = 0.1$(每分钟)。它何时降到 $55^{\circ}\text{C}$?
$T = 20 + 70e^{-0.1t}$. Setting $T = 55$: $e^{-0.1t} = \tfrac{35}{70} = \tfrac{1}{2}$, so $t = 10\ln 2 \approx 6.93$ minutes. (The excess temperature halves every $6.93$ minutes.)
$T = 20 + 70e^{-0.1t}$。令 $T = 55$:$e^{-0.1t} = \tfrac{35}{70} = \tfrac{1}{2}$,所以 $t = 10\ln 2 \approx 6.93$ 分钟。(超出室温的部分每 $6.93$ 分钟减半。)
Exam Strategy and Common Pitfalls考试策略与常见陷阱
- Test for separability first. If $\tfrac{dy}{dx}$ factors as $f(x) g(y)$, separation is the cleanest route. Worth checking even when the DE is also linear, because separation usually takes fewer steps than an integrating factor.
- 先测可分离性。若 $\tfrac{dy}{dx}$ 能分解为 $f(x) g(y)$,分离法最干净。即便方程也是线性的,仍值得先试分离,因为分离法通常比积分因子法步骤更少。
- If the right-hand side is a function of $\tfrac{y}{x}$, substitute $y = vx$. The homogeneous equation becomes separable in $v$ and $x$.
- 若右边是 $\tfrac{y}{x}$ 的函数,代入 $y = vx$。齐次方程随即化为关于 $v$ 与 $x$ 的可分离方程。
- If not separable, try the linear form. Reshape into $\tfrac{dy}{dx} + P(x) y = Q(x)$ and read off $P, Q$. The integrating factor $\mu = e^{\int P \, dx}$ then unlocks the equation.
- 若不可分离,尝试线性形式。整理为 $\tfrac{dy}{dx} + P(x) y = Q(x)$ 后读出 $P, Q$。积分因子 $\mu = e^{\int P \, dx}$ 即可破题。
- Write $+ C$ explicitly. Without the constant you have found one solution, not the general solution, and the initial condition has nothing to fix. Show it appearing on the first integration step and then solve for it after the initial condition.
- $+ C$ 必须显式写出。没有常数,你只求出了一个解,而不是通解,初始条件也就无从确定任何东西。在第一步积分时就写出,再由初始条件解出。
- Combine constants by renaming. $e^{C_{1}}$ becomes a new constant $A$; do not carry chains of $C_{1}, C_{2}, C_{3}$ through the algebra. One symbol per final constant is cleaner.
- 合并常数时重命名。$e^{C_{1}}$ 重命名为新常数 $A$;不要把 $C_{1}, C_{2}, C_{3}$ 链条带到最后。一个最终常数对应一个符号更清晰。
- For separable DEs, $\int \tfrac{dy}{y}$ is $\ln |y|$. Drop the absolute value only after exponentiating into $y = A e^{(\dots)}$ where $A$ ranges over all real numbers.
- 分离法中 $\int \tfrac{dy}{y}$ 写作 $\ln |y|$。取指数化为 $y = A e^{(\dots)}$($A$ 可正可负可零)后才能去掉绝对值。
- For Euler, tabulate. Columns $n, x_{n}, y_{n}, f(x_{n}, y_{n}), h \cdot f, y_{n + 1}$. The table shows the method and makes slips easy to find; a bare final number is an incomplete answer.
- 欧拉法务必列表。列 $n, x_{n}, y_{n}, f(x_{n}, y_{n}), h \cdot f, y_{n + 1}$。表格展示方法,也让错误容易查出;只写一个最终数字是不完整的答案。
- Compare Euler to the exact solution when possible. Say whether $y_{\text{Euler}}$ undershoots or overshoots, and justify it with the concavity of the exact curve.
- 有可能时把欧拉值与精确解比较。说明 $y_{\text{Euler}}$ 偏低还是偏高,并用精确解的凹凸性加以说明。
- For slope-field questions, start at the zeros. Where $f(x, y) = 0$ marks horizontal segments, which is the fastest way to identify or rule out a candidate diagram.
- 斜率场题先看零点。$f(x, y) = 0$ 处是水平线段,是辨识或排除候选图最快的特征。
Paper 1 (no technology) and Paper 2 (technology required) each last 2 hours and are each worth 30%; each has a compulsory Section A (short response) and Section B (extended response). Paper 3 (technology required, 1 hour, 20%) has two compulsory extended-response questions. The internal assessment, a mathematical exploration, is the remaining 20%. Practise separating variables, the substitution $y = vx$ and the integrating factor by hand with exact values, since Paper 1 allows no technology.
Paper 1(不允许使用技术工具)与 Paper 2(要求使用技术工具)各 2 小时,各占 30%;两份试卷都有必答的 Section A(短答)和 Section B(长答)。Paper 3(要求使用技术工具,1 小时,占 20%)有两道必答的长答题。其余 20% 是内部评估(internal assessment),即数学探究(mathematical exploration)。由于 Paper 1 不允许使用技术工具,分离变量、换元 $y = vx$ 与积分因子法都要练到能用精确值手算。
Flashcards (HL unit)闪卡(HL 单元)
Unit E5 Practice Quiz (HL unit)单元 E5 练习测验(HL 单元)
Readiness Checklist (HL unit)备考清单(HL 单元)
Tick each item when you can do it cold, without notes, on your first attempt. The entire unit is HL only, so every item below is HL content.
每一条都要"裸做"做对(不看笔记、一次过)才打勾。本单元为纯 HL,所以下面每一条都是 HL 内容。
- State the order of a DE and identify whether a first-order DE is separable, linear, or neither说出 DE 的阶数,并判断一阶 DE 是可分离、线性还是都不是
- Verify a candidate function satisfies a given DE by substitution通过代入验证候选函数是否满足给定 DE
- Distinguish general solution (with arbitrary constant) from particular solution (initial condition applied)区分通解(含任意常数)与特解(已用初始条件)
- Solve a separable first-order DE end to end, including the initial-condition substitution完整求解可分离一阶 DE,包括代入初始条件
- Recognise that $\int \tfrac{dy}{y} = \ln |y| + C$ and convert into $y = A e^{(\dots)}$ form correctly用 $\int \tfrac{dy}{y} = \ln |y| + C$,并正确化为 $y = A e^{(\dots)}$ 形式
- Reshape a first-order DE into the linear standard form $y' + P(x) y = Q(x)$把一阶 DE 整理为线性标准形式 $y' + P(x) y = Q(x)$
- Compute the integrating factor $\mu = e^{\int P \, dx}$ and use it to solve a linear DE算积分因子 $\mu = e^{\int P \, dx}$,用以解线性 DE
- Apply Euler's method by hand for two or three steps, showing every $f(x_{n}, y_{n})$手算欧拉法两三步,每个 $f(x_{n}, y_{n})$ 必须写出
- Explain how step size $h$ affects accuracy and total error for Euler's method解释步长 $h$ 如何影响欧拉法的精度与总误差
- Read a slope field, identify horizontal segments, and sketch a solution curve through a given point读懂斜率场、识别水平线段、过给定点画出解曲线
- Model exponential growth or decay and solve the resulting DE for a given initial value建模指数增长或衰减,并对给定初值解出 DE
- Apply Newton's law of cooling, using the substitution $u = T - T_{\text{env}}$ to separate variables应用牛顿冷却律,用换元 $u = T - T_{\text{env}}$ 分离变量
- Recognise the logistic equation $\tfrac{dP}{dt} = k P (M - P)$ and solve it using partial fractions识别逻辑斯蒂方程 $\tfrac{dP}{dt} = k P (M - P)$,并用部分分式求解
IB Paper-Style PracticeIB 试卷风格练习
Work the E5 practice set next, then mark it against the fully worked solutions.
接下来完成 E5 练习题,再对照完整的解答批改。
How to use this guide本指南使用说明
How to use this guide本指南使用说明
E5 is one of four units in this course (with A4, C3 and E6) that are entirely HL only: differential equations are additional higher level content (AHL 5.18). A typical extended task chains several steps: set up a DE from a context, classify it (separable, homogeneous or linear), solve it for a particular initial condition, and then compare with an Euler approximation or interpret the model. Each section of E5 isolates one of those steps, so practise the whole chain as well as the single steps.E5 是本课程中四个完全属于 HL 的单元之一(另外三个是 A4、C3、E6):微分方程属于高级附加内容(AHL 5.18)。一道典型的长题会串起多个步骤:由情境建立微分方程,判断类型(可分离、齐次或线性),用初始条件求特解,再与欧拉近似比较或解读模型。E5 各节分别聚焦其中一步,所以既要练单个步骤,也要练完整链条。
Memorise two recipes. Separable: if $\tfrac{dy}{dx} = f(x) g(y)$, rearrange to $\tfrac{dy}{g(y)} = f(x) \, dx$ and integrate both sides. Linear: if $\tfrac{dy}{dx} + P(x) y = Q(x)$, the integrating factor is $\mu = e^{\int P \, dx}$ and $\tfrac{d}{dx}(\mu y) = \mu Q$. Do one worked problem of each end to end.
背两个套路。可分离:若 $\tfrac{dy}{dx} = f(x) g(y)$,整理为 $\tfrac{dy}{g(y)} = f(x) \, dx$ 两边积分。线性:若 $\tfrac{dy}{dx} + P(x) y = Q(x)$,积分因子 $\mu = e^{\int P \, dx}$ 且 $\tfrac{d}{dx}(\mu y) = \mu Q$。每类完整做一道例题。
Cleanly separate general solution (one arbitrary constant) from particular solution (constant fixed by an initial condition). Run Euler's method by hand for at least two steps and recognise that smaller step size $h$ improves accuracy but multiplies arithmetic. For applications, derive the cooling and logistic models from first principles instead of citing them.
把通解(含一个任意常数)与特解(由初始条件确定常数)严格区分。手算欧拉法至少两步,并理解步长 $h$ 越小精度越高、但运算量增加。应用题中由第一性原理推导冷却与逻辑斯蒂模型,不要直接背公式。